<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="model.JsfStaff"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">

<title>客户信息</title>
</head>
<body>
<%
	JsfStaff staff = (JsfStaff) session.getAttribute("staff");
	int ps = staff.getStatus();
%>
<%if( ps == 1 ){  %>
<s:form method="post" action="/hdjl/neibor_add.jsp" id="form2">
	<table class="table table-condensed table-hover table-striped">
			<tr>
				<td width="70">课程编号</td>
				<td width="150">课程名称</td>
				<td width="150">客户名称</td>
				<%if( ps == 1 ){  %>
				<td width="150">操作</td>
				<%} %>
				<td width="150">详情</td>
			</tr>
			<s:iterator value="orderlist" var="var">
				<tr>
					<td width="70">
					<a href="class_findById?classId=<s:property value="#var.id.jsfClass.id" />">
					<s:property value="#var.id.jsfClass.id" />
					</a>
					</td>
					<td width="150">
					<s:property value="#var.id.jsfClass.name" />
					</td>
					<td width="150">
					<a href="client_findById?clientId=<s:property value="#var.id.jsfClient.id" />&level=1">
					<s:property value="#var.id.jsfClient.name" />
					</a>
					</td>
					<%if( ps == 1 ){  %>
					<td width="150">
					<s:if test="%{#var.pay}">
					缴费成功					
					</s:if>
					<s:else>
					<a href="order_pay?clientId=<s:property value="#var.id.jsfClient.id" />&
					classId=<s:property value="#var.id.jsfClass.id" />">
					未交费(点击缴费)
					</a>
					</s:else>
					</td>
					<td width="70">
					<a href="order_findById?clientId=<s:property value="#var.id.jsfClient.id" />&
					classId=<s:property value="#var.id.jsfClass.id" />">
					详情
					</a>
					</td>
					<%} %>
				</tr>
			</s:iterator>
	</table>
</s:form>
<%} %>
</body>
</html>